export function formatDate(t , e =":",c ="-" ){ 
  let i = function (t) { 
    return t > 9 ? t : "0" + t 
  };
  return ("number" == typeof t || "string" == typeof t)
   && (t = new Date(t)),
   [[t.getFullYear(), i(t.getMonth() + 1), i(t.getDate())].join(e),[t.getHours(),t.getMinutes(),t.getSeconds()].join(e)]
   .join(c);
}